package com.jl.model.gongniu.enums;

import java.math.BigDecimal;

/*
房费
 */
public enum RoomRate {

    type1("1",4,"房主支付4钻石"),
    type2("2",1,"AA支付1钻石");

    private String id;
    private Integer value;
    private String desc;

    RoomRate(String id, Integer value, String desc) {
        this.id = id;
        this.value = value;
        this.desc = desc;
    }

    public String getId() {
        return id;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static boolean compareTo(RoomRate roomRate , BigDecimal bigDecimal){
        if (bigDecimal.compareTo(new BigDecimal(roomRate.getValue()))>=0){
            return true;
        }
        return false;
    }
}
